package com.group5.onlinegame.service;


import com.group5.onlinegame.dao.IVipDao;
import com.group5.onlinegame.entity.Vip;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class VipService implements IVipService {
    @Resource
    private IVipDao iVipDao;


    @Override
    public List<Vip> getVipList() {
        return iVipDao.getVipList();
    }

    @Override
    public Vip getVipbyid(Integer id) {
        return iVipDao.getVipbyid(id);
    }

    @Override
    public int addVip(Vip vip) {
        return iVipDao.addVip(vip);
    }

    @Override
    public int delVip(int[] listid) {
        return iVipDao.delVip(listid);
    }

    @Override
    public int upVip(Vip vip) {
        return iVipDao.upVip(vip);
    }
}
